Skip to content

Add workflow list command#397

Merged
timothyF95 merged 11 commits intomainfrom
add-workflow-list
Apr 23, 2026
Merged

Add workflow list command#397
timothyF95 merged 11 commits intomainfrom
add-workflow-list

Conversation

@timothyF95
Copy link
Copy Markdown
Contributor

No description provided.

@timothyF95 timothyF95 marked this pull request as ready for review April 22, 2026 18:34
@timothyF95 timothyF95 requested a review from a team as a code owner April 22, 2026 18:34
Comment thread cmd/workflow/list/list.go Outdated
Comment thread cmd/workflow/list/list.go Outdated
Comment thread cmd/workflow/list/list.go Outdated
Comment thread cmd/workflow/list/list.go Outdated
Comment thread cmd/workflow/list/list_test.go Outdated
Comment thread cmd/workflow/list/list_test.go
Comment thread cmd/workflow/list/list_client.go Outdated
Comment thread cmd/workflow/list/list.go Outdated
Comment thread cmd/workflow/list/list_client_test.go Outdated
Comment thread cmd/workflow/list/list_test.go Outdated
Comment thread cmd/workflow/list/registry.go
all := []*tenantctx.Registry{reg}

if !rowMatchesRegistry("private", reg, all) {
t.Error("expected direct ID match to return true")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use assert.True or assert.False? It's more clear than if and t.Error.

return out
}

func rowMatchesRegistry(workflowSource string, reg *tenantctx.Registry, all []*tenantctx.Registry) bool {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now looking also at tests, the name of this function could be better. E.g. workflowSourcesMatchesRegistry. WDYT?

@timothyF95 timothyF95 added this pull request to the merge queue Apr 23, 2026
Merged via the queue into main with commit e53377a Apr 23, 2026
22 checks passed
@timothyF95 timothyF95 deleted the add-workflow-list branch April 23, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants